import {setServer} from "@/utils/axios";
import {fireUrl} from "../../../url";
const fireRequest = setServer(fireUrl);

// 获取消防楼宇统计
export function getFireBuilding(query) {
  return fireRequest({
    url: '/building/',
    method: 'get',
    params: query
  })
}

// 同步消防楼宇数据
export function synFireBuilding() {
  return fireRequest({
    url: '/building/synData',
    method: 'get',
  })
}

// 获取所有可绑定消防楼宇
export function getAllFireBuilding() {
  return fireRequest({
    url: '/building/listAll',
    method: 'get',
  })
}

// 消防楼宇绑定管理员
export function fireBuildingBindManager(query) {
  return fireRequest({
    url: '/building/bindManager',
    method: 'post',
    params: query
  })
}

